/* Based on https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/centered_tab_label.css */
.tab-label-container {
  display: grid;
}
.tab-label,
.tab-secondary-label {
  overflow: clip;

  // #761
  justify-self: safe center;
  align-self: safe center;
}

.tabbrowser-tab[selected]:not(:hover) .tab-label-container:not([textoverflow]),
.tabbrowser-tab:not(:hover,[pinned]) .tab-label-container:not([textoverflow]) {
  margin-inline-end: 5px; // userChrome.tab.close_button_at_hover 6px - 1px
}
